attribute vec4 aPosition;
uniform float uRadian;
uniform vec4 uColor;

void main(){
    float radian=radians(uRadian);
    float s=sin(radian);
    float c=cos(radian);
    
    // 绕X轴旋转
    mat4 mx=mat4(
        1,0,0,0,
        0,c,-s,0,
        0,s,c,0,
        0,0,0,1
    );
    // 绕Y轴旋转
    mat4 my=mat4(
        c,0,-s,0,
        0,1,0,0,
        s,0,c,0,
        0,0,0,1
    );
    
    gl_Position=mx*my*aPosition;
    gl_PointSize=10.;
}